import request from "@/utils/request"
export default {
    // /resources/carousel  获取轮播图数据

    getBanner(data = {}) {
        return request({
            url: "resources/carousel",
            method: "POST",
            data: data
        })
    },


    // 首页手机列表

    getPromoProduct(data = {}) {
        // "categoryName": "手机" 
        return request({
            url: "product/getPromoProduct",
            method: "POST",
            data: data
        })
    },


    // /product/getHotProduct 获取热门内容
    getHotProduct(data = {}) {
        //data = categoryName: ["电视机", "空调", "洗衣机"]
        return request({
            url: "/product/getHotProduct",
            method: "POST",
            data: data
        })
    },







}

// this.getCarousel()